<div id="chooseProductModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="chooseProductModelLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="chooseProductModelLabel">选择商品</h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">

                <div class="ibox ">
                    <div class="row">
                        <div class="col-sm-7 m-b-xs">
                        </div>
                        <div class="col-sm-5">
                            <div class="input-group">
                                <input placeholder="输入商品信息名称" type="text"
                                    v-model="chooseProductInfo._currentProductName"
                                    class="form-control form-control-sm">
                                <span class="input-group-append">
                                    <button type="button" class="btn btn-sm btn-primary" v-on:click="queryProducts()">
                                        <i class="fa fa-search"></i> 查询
                                    </button>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive" style="margin-top:15px">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="text-center">商品编号</th>
                                    <th class="text-center">商品大类</th>
                                    <th class="text-center">商品图片</th>
                                    <th class="text-center">商品名称</th>
                                    <!--<th class="text-center">商品规格</th>-->
                                    <th class="text-center">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="product in chooseProductInfo.products">
                                    <td class="text-center">{{product.productId}}</td>
                                    <td class="text-center">{{product.categoryName}}</td>
                                    <td class="text-center">
                                        <img style="width: 60px; height: 60px; border-radius: 5px;"
                                            v-bind:src="product.coverPhoto">
                                    </td>
                                    <td class="text-center">{{product.prodName}}</td>
                                    <!--<td class="text-center">{{product.productSpec.specName}}</td>-->
                                    <td class="text-center">
                                        <button class="btn btn-primary btn-xs" v-on:click="chooseProduct(product)">选择
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>